<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/JavaScript">
        a = prompt("请输入一个数");
        alert("网页警告框");
        alert("我是顶部2!");
        alert(a);

        console.log("接收的值是:"+a);
    </script>
</head>
<body>
    <div>
        <script>
            document.write("今天天气很好");
        </script>
    </div>
    <div>
        <input onclick="document.write('清空后的文本')" type="button" value="清除所有内容">
    </div>
    <div>
        <input onclick="alert('Hello JavaScript!')" type="button" value="点一下" />
    </div>
    <script>
        alert("我是底部");
    </script>
    <script src="JS/js01.js">

    </script>
</body>
</html>